import { Axios } from "./axios/index";
import { Mock } from "./mock/index";
export type RequestType = "axios" | "mock";

export const creatRequest = (type: RequestType) => {
  if (type === "axios") {
    return new Axios();
  }
  if (type === "mock") {
    return new Mock();
  }
};
